package com.iocup.keybastion.core.lock;

import java.util.function.Consumer;

public class LocalLock implements Lock {
    @Override
    public void tryLock(LockType lockType, String key, Consumer<String> consumer) {
         synchronized (lockType){
             consumer.accept(key);
         }
    }
}
